<script>
/*
 * @Author: wzh 
 * @Date: 2020-12-17 23:57:46 
 * @Last Modified by: 1521620993@qq.com
 * @Last Modified time: 2020-12-18 00:49:34
 */
</script>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>02-盒模型的组成</title>
</head>
<body>
  <style>
    /* 默认设置的宽高是被设置到了content内容区域 */
    /* .box{
      width: 300px;
      height: 300px;
      background-color: red;
      padding: 10px;
      border: 10px solid blue;
      border-width: 10px;
      border-style: dashed;
      border-color: blue;
      border-bottom-width: 6px;
      margin: 10px;
      float: left;
      background-clip: border-box;
    } */
  </style>
  <!-- <div class="box"></div>
  <div class="box"></div> -->

  <style>
    .box{
      width: 600px;
      border: 1px solid blue;
      overflow: hidden;
    }
    .box div{
      width: 200px;
      height: 200px;
      background-color: red;
      float: left;
      padding: 10px;
      border: 10px solid blue;
      box-sizing: border-box;
    }
  </style>
  <div class="box">
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
  </div>
</body>
</html>